﻿
@using Single_SignOn.Areas.Web.Models
@using Single_SignOn.ResX
@model IEnumerable<Single_SignOn.Areas.Web.Models.Company>
<table style="width: 100%;" class="center">
    <tr>
        <td style="width: 40%; vertical-align: middle;" class="right"><h4>@ResourceTools.GetResource("Resource", "Company") : </h4></td>
        <td style="width: 60%; vertical-align: middle;" class="left">@Html.DropDownList("Company", new SelectList(Model, "Name","Description",ViewBag.CompanyName))</td>
    </tr>
</table>
<div class="display">
    <a id="urlCompany" href="@Html.AttributeEncode(Url.Action("ChangeCompany", "ApplicationList", new {company= ""}))" style="display:none;"></a>
    
    <script type="text/javascript">
       /**/ $(document).ready(function () {
           $('#Company').change(function () {
               document.location.href = $('#urlCompany').attr('href') + "?company=" + $('#Company').val();
            });
        });
    </script>
</div>

